﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<EPPLib.Data.DomainDataObject>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="mainContentPlaceholder" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>
                InternalID
            </th>
            <th>
                OwnerID
            </th>
            <th>
                ROID
            </th>
            <th>
                Name
            </th>
            <th>
                CurrentRegistrar
            </th>
            <th>
                UpdateRegistrar
            </th>
            <th>
                CreateDate
            </th>
            <th>
                UpdateDate
            </th>
            <th>
                DeleteDate
            </th>
            <th>
                ExpireDate
            </th>
            <th>
                TransferDate
            </th>
            <th>
                Status
            </th>
            <th>
                AuthInfo
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { name=item.Name }) %> |
                <%: Html.ActionLink("Details", "Details", new { name = item.Name })%> |
                <%: Html.ActionLink("Delete", "Delete", new { name = item.Name })%>
            </td>
            <td>
                <%: item.InternalID %>
            </td>
            <td>
                <%: item.OwnerID %>
            </td>
            <td>
                <%: item.ROID %>
            </td>
            <td>
                <%: item.Name %>
            </td>
            <td>
                <%: item.CurrentRegistrar %>
            </td>
            <td>
                <%: item.UpdateRegistrar %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.CreateDate) %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.UpdateDate) %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.DeleteDate) %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.ExpireDate) %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.TransferDate) %>
            </td>
            <td>
                <%: item.Status %>
            </td>
            <td>
                <%: item.AuthInfo %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="titleContentPlaceholder" runat="server">
</asp:Content>

